package main

import "fmt"

func main() {
	fmt.Println("programm start")
	age := 35
	if age < 0 || age > 150 {
		fmt.Println("年龄不合法")
		goto end
	}
	switch age {
	case 70:
		fmt.Println("老年人")
		fallthrough
	case 35:
		fmt.Println("中年人")
		fallthrough
	case 18:
		fmt.Println("青年人")
		fallthrough
	case 12:
		fmt.Println("儿童")
		fallthrough
	case 3:
		fmt.Println("婴儿")
		fallthrough
	case 1:
		fmt.Println("新生儿")
		fallthrough
	default:
		fmt.Println("请选择年龄区间")
	}
end:
	fmt.Println("programm over")
}
